import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

/**
 * 
 * @author Christian Knudsen
 *
 */

public class MenuBar extends JMenuBar
{
    private static final long serialVersionUID = 1L;
    
    public MenuBar()
    {
    	JMenu fileMenu = new JMenu("Filer");
		add(fileMenu);

		JMenuItem aboutItem = new JMenuItem("Om projektet");
		aboutItem.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				new About().show();
			}
		});
		fileMenu.add(aboutItem);

		JMenuItem quitItem = new JMenuItem("Luk");
		quitItem.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				System.exit(0);
			}
		});
		fileMenu.add(quitItem);
    }

}
